package com.yl.pattern.structuralmodel.decorator;

/**
 * @Author 小羊
 * @Date 30/10/2024下午 9:13
 * @ClassName FriendNoodles
 * @Description 炒面(具体构架角色)
 */
public class FriendNoodles extends FastFood{
    public FriendNoodles() {
        super(12,"炒面");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
